package cn.wzg.server.Service.Serviceimpl;

import cn.wzg.entity.User;
import cn.wzg.server.Service.UserService;

import java.util.Random;
import java.util.UUID;

public class Userserviceimpl implements UserService {
    @Override
    public User getUserById(Integer id) {
        Random random = new Random();
        User user = User.builder().name(UUID.randomUUID().toString()).
                id(id).
                sex(random.nextBoolean()).build();
        return user;
    }

    @Override
    public int insertUser(User user) {
        System.out.println("插入成功");
        return 1;
    }
}
